package com.jsgt.greekfire.bean

import java.math.BigInteger

data class TradeOrderPage(
    val `data`: List<TradeOrder>,
    val size: Int,
    val total: Int
)

data class TradeOrder(
    val assetAmount: BigInteger,
    val assetName: String,
    val blockHash: String,
    val blockNumber: Int,
    val contract: Any,
    val contractAddress: String,
    val contractCallValue: Int,
    val contractResult: String,
    val contractType: String,
    val contracts: String,
    val `data`: String,
    val energyFee: Int,
    val energyUsage: Int,
    val energyUsageTotal: Int,
    val feeLimit: Int,
    val fromAddress: String,
    val id: String,
    val internalTrananctionList: List<Any>,
    val latestSolidifiedBlockNumber: Int,
    val netFee: Int,
    val netUsage: Int,
    val originEnergyUsage: Int,
    val result: String,
    val timeStamp: Long,
    val toAddress: String,
    val transactionId: String,
    val triggerName: String
){
    class Contract{
        companion object{
            const val CONTRACT_TRANSFER = "TransferContract" //ATR转账
            const val CONTRACT_DELEGATE_REWARD = "DelegateRewardContract" //挖矿奖励
            const val CONTRACT_DELEGATE = "DelegateContract" //委托挖矿
            const val CONTRACT_UNDELEGATE = "UnDelegateContract" //退出委托挖矿
        }
    }
}